package com.ccp.dev.form.model;

/**
 * 主键值
 *
 * @author zhaowj
 */
public class PkValue {

    public PkValue() {
    }

    public PkValue(String pkField, Object value) {
        this.name = pkField;
        this.value = value;
    }


    /**
     * 主键
     */
    private String name = "";

    /**
     * 主键值
     */
    private Object value;

    /**
     * 是否添加
     */
    private boolean isAdd = false;


    public boolean getIsAdd() {
        return isAdd;
    }

    public void setIsAdd(boolean isAdd) {
        this.isAdd = isAdd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "PkValue{" +
                "name='" + name + '\'' +
                ", value=" + value +
                ", isAdd=" + isAdd +
                '}';
    }
}

